<?php
// .-----------------------------------------------------------------------------------
// | WE TRY THE BEST WAY 杭州博也网络科技有限公司
// |-----------------------------------------------------------------------------------
// | Author: 贝贝 <hebiduhebi@163.com>
// | Copyright (c) 2013-2016, http://www.itboye.com. All Rights Reserved.
// |-----------------------------------------------------------------------------------
namespace app\admin\api;

use app\common\api\BaseApi;
use app\admin\model\Datatree;

class DatatreeApi extends BaseApi{


    /**
     * 查询单条
     */
    const GET_INFO = "admin/DatatreeApi/getInfo";
    /**
     * 查询，不分页
     */
    const QUERY_NO_PAGING = "admin/DatatreeApi/queryNoPaging";
    /**
     * 添加
     */
    const ADD = "admin/DatatreeApi/add";
    /**
     * 保存
     */
    const SAVE = "admin/DatatreeApi/save";
    /**
     * 保存根据ID主键
     */
    const SAVE_BY_ID = "admin/DatatreeApi/saveByID";

    /**
     * 删除
     */
    const DELETE = "admin/DatatreeApi/delete";

    /**
     * 查询
     */
    const QUERY = "admin/DatatreeApi/query";

	protected function _init(){
		$this->model = new Datatree();
	}
}

